/*
* ClassroomDao.java
* Created on  2014-8-5 下午4:48
* 版本       修改时间          作者      修改内容
* V1.0.1    2014-8-5       gaoxinyu    初始版本
*
*/
package com.genghis.ptas.classroom.dao;

import com.genghis.core.page.entity.Page;
import com.genghis.core.page.entity.PageParameter;
import com.genghis.ptas.classroom.entity.ClassroomCourse;
import com.genghis.ptas.classroom.entity.ClassroomInfo;
import com.genghis.ptas.classroom.entity.ClassroomStudent;
import com.genghis.ptas.task.entity.LibraryOption;

import java.util.List;

/**
 * 类的描述信息
 *
 * @author fengxuanzhen
 * @version 1.0.1
 */
public interface ClassroomDao {
    Page<ClassroomInfo> findClassroomInfoPageList(PageParameter pageParameter, ClassroomInfo libraryTask);

    void deleteClassroomInfoById(Integer id);

    void deleteClassroomCourseByClassroomId(Integer id);

    int addClassroomInfo(ClassroomInfo libraryTask);

    ClassroomInfo findClassroomInfoById(int taskId);

    List<LibraryOption> findLibraryOptionByTaskId(int taskId);

    void editClassroomInfo(ClassroomInfo libraryTask);

    List<ClassroomCourse> findClassroomCourseByClassroomInfoId(Integer classroomInfoId);

    int addClassroomCourse(ClassroomCourse classroomCourse);

    List<ClassroomInfo> findAllClassroomInfoList();

    int addClassroomStudent(ClassroomStudent classroomStudent);

    List<ClassroomStudent> findClassroomStudentByStudentIdAndClassroomInfoId(int userId ,int classroomInfoId);

    void changeStudentCourseId(ClassroomStudent classroomStudent);

    List<ClassroomInfo> findExpendClassroom(String classroomCourseName);

    List<ClassroomStudent> findClassroomStudentByClassroomInfoId(int classroomInfoId);

    Integer findMaxCourseNumberByCourseId(Integer id);
}
